<%@page import="com.xbk.platform.DaoUtil"%>
<%@page import="com.xbk.jtable.ui.jTable"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/Include/include.jspf"%>
<%
	DaoUtil du = ConnectionMananger.getDaoUtil();
	jTable table = null;
	try{
		String sSql = "SELECT T.PROJ_ID,T.TAB_NAME,T.FLD_NAME,T.FLD_CN,T.BIZ_DESC FROM m10_src_fld_info t";
		table = new jTable(du);
		table.setKeyCols("PROJ_ID");
		table.setRelativeTable("m10_src_fld_info");
// 		table.setPageSize(8);
// 		table.getPage().setCurPage(2);
		table.initBySql(sSql);
		
		table.setHeader(du.getCols(sSql));
// 		table.setPageSize(10);
		table.addClass("table-striped")
			 .addClass("table")
// 			 .addClass("table-condensed")
			 .addClass("table-hover")
			 .addClass("mb0")
			 .addClass("table-bordered");
		table.setSession(session);
	}catch (Exception e){
		e.printStackTrace();
	}
	%>
<style type="text/css">
.jtable th{text-align: center;background: #F5F5F5;cursor: pointer;font-size: 14px;font-family: "微软雅黑"}
</style>
<script type="text/javascript">
	function toPage(pageNumber,tableID){
		$.post("jTable",{action:"toPage",pageNumber:pageNumber,tableID:tableID},function(data){
			$("#jTableBox").replaceWith($(data));
		});
	}

	$(function() {
	});
</script>
<title>DCP：一切为了更效率、更开心的工作。</title>
</head>
<body>
<div id="jTableBox">
	<%=table.getHtml() %>
</div>
<!-- <div class="container mt20"> -->
<!-- 	<div class="jtable-buttons"> -->
<!-- 		<button class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button> -->
<!-- 		<button class="btn btn-danger"><i class="icon-remove icon-white"></i> 删除</button> -->
<!-- 		<button class="btn"><i class="icon-remove"></i> 操作</button> -->
<!-- 		<form class="form-search pull-right mb5"> -->
<!-- 		  <div class="input-append"> -->
<!-- 		    <input type="text" class="span2 search-query" placeholder="键入关键词搜索" autofocus="autofocus" autocomplete="on"> -->
<!-- 		    <button type="submit" class="btn" >搜索</button> -->
<!-- 		  </div> -->
<!-- 		</form> -->
<!-- 	</div> -->
	
<!-- 	<div class="jtable-container pt5 pb5"> -->
<%-- 		<%=table.getHtml() %> --%>
<!-- 	</div> -->
	
<!-- 	<div class="jtable-pages btn-group fill stay-center"> -->
<!--       <input class="btn" disabled="disabled" value="共有记录条数：5"> -->
<!--       <button class="btn">1</button> -->
<!--       <button class="btn">2</button> -->
<!--       <button class="btn">3</button> -->
<!--       <button class="btn">4</button> -->
<!--       <button class="btn">...</button> -->
<!--       <button class="btn">6</button> -->
<!--       <button class="btn">7</button> -->
<!--       <button class="btn">8</button> -->
<!--       <button class="btn">9</button> -->
<!--       <button class="btn">10</button> -->
<!--       <input class="btn" disabled="disabled" value="当前位置：10/50"> -->
<!-- 	</div> -->
<!-- </div> -->
</body>
</html>